package com.jgp.security.secmodel;

import com.jgp.common.persistence.UUIDModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 项目   parent
 * 作者   loufei
 * 时间   2018/4/13
 */
@Entity
@Table(name = "sec_role_resource")
public class SecRoleResource extends UUIDModel{
    
    private static final long serialVersionUID = 7671897029396497043L;
    @Column(name = "role_id")
    private Long roleId;
    
    @Column(name = "resource_id",length = 32)
    private String resourceId;
    
    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    
    public void setResourceId(String resourceId) {
        this.resourceId = resourceId;
    }
    
    public Long getRoleId() {
        return roleId;
    }
    
    public String getResourceId() {
        return resourceId;
    }
}
